/**
  ******************************************************************************
  * @file           : XYXKC_ESP32_E.cpp
  * @author         : admin
  * @brief          : None
  * @attention      : None
  * @date           : 2024/10/9
  ******************************************************************************
  */

#include "XYXKC_ESP32_E.h"
XYXKC_ESP32_E::XYXKC_ESP32_E() {}

void XYXKC_ESP32_E::begin() {
    pixels.begin(17, 3, 100);
    display.init();
    accelerometer.init();
    rgb.write(-1, 0);


}

void XYXKC_ESP32_E::setTouchThreshold(uint32_t threshold)
{
    threshold = constrain(threshold, 0, 80);
    touchPadP.threshold = threshold;
    touchPadY.threshold = threshold;
    touchPadT.threshold = threshold;
    touchPadH.threshold = threshold;
    touchPadO.threshold = threshold;
    touchPadN.threshold = threshold;
}
XYXKC_ESP32_E mPython;